package cn.icanci.loopstack.ddk.client.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author icanci
 * @since 1.0 Created in 2023/01/06 22:28
 */
@Component
@ConfigurationProperties(prefix = "ddk")
public class DdkProperties {

    /**
     * 是否加载
     */
    private boolean load       = true;
    /**
     * appId
     */
    private String  appId;

    /**
     * 加载的环境
     */
    private String  env        = "test";

    /**
     * 客户端注册的port
     */
    private int     clientPort = 11000;
    /**
     * 服务端ip，以,分隔
     */
    private String  serverIps  = "127.0.0.1";
    /**
     * 服务端port
     */
    private int     serverPort = 9998;

    public boolean isLoad() {
        return load;
    }

    public void setLoad(boolean load) {
        this.load = load;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public int getClientPort() {
        return clientPort;
    }

    public void setClientPort(int clientPort) {
        this.clientPort = clientPort;
    }

    public String getServerIps() {
        return serverIps;
    }

    public void setServerIps(String serverIps) {
        this.serverIps = serverIps;
    }

    public int getServerPort() {
        return serverPort;
    }

    public void setServerPort(int serverPort) {
        this.serverPort = serverPort;
    }
}
